home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
lib
/
mntlib44.zoo
/
mntlib
/
perror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-05
|
350b
|
23 lines
/* originally from Dale Schumacher's dLibs */
/*
* standard "print error message" function
*/
#include <stdio.h>
#include <errno.h>
#include <string.h>
void perror(msg)
const char *msg;
{
if(msg && *msg)
{
fputs(msg, stderr);
fputs(": ", stderr);
}
if((msg = strerror(errno)) != NULL)
fputs(msg, stderr);
fputs(".\n", stderr);
}